s = input().split(" ");
radius = float(s[0])
length = float(s[1])
area = radius ** 2 * 3.1415926
volume = area * length
print("%.2f\n%.2f" % (area, volume))